package com.yeyks.config.dal.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 充值配置表
 * </p>
 *
 * @author yun
 * @since 2019-06-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="RechargeConfig对象", description="充值配置表")
public class RechargeConfig implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "标题")
    @TableField("title")
    private String title;

    @ApiModelProperty(value = "充值金额(单位/分)")
    @TableField("pay_amount")
    private Integer payAmount;

    @ApiModelProperty(value = "赠送金额(单位/分)")
    @TableField("give_amount")
    private Integer giveAmount;

    @ApiModelProperty(value = "状态 默认0未生效，1生效")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "类型，1会员充值")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "类型 1普通类型 2企业用户")
    @TableField("user_type")
    private Integer userType;

    @ApiModelProperty(value = "创建日期")
    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty(value = "更新日期")
    @TableField("update_time")
    private Date updateTime;


    public static final String ID = "id";

    public static final String TITLE = "title";

    public static final String PAY_AMOUNT = "pay_amount";

    public static final String GIVE_AMOUNT = "give_amount";

    public static final String STATUS = "status";

    public static final String TYPE = "type";

    public static final String USER_TYPE = "user_type";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

}
